<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta name="keywords" content=""/>
    <meta name="description" content="">
    <include file="public@head"/>
</head>

<body class="body-white">
<include file="public@nav"/>

<div class="container tc-main">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <php>
                $mobile_tab_active=empty($theme_vars['enable_mobile'])?'':'active';
                $email_tab_active=empty($theme_vars['enable_mobile'])?'active':'';
            </php>
            <php>
                $is_open_registration = dc_is_open_registration();
            </php>

            <div class="tab-content">
                <notempty name="theme_vars.enable_mobile">
                    <div class="tab-pane {$mobile_tab_active}" id="mobile">
                        <form class="js-ajax-form" action="{:url('user/Register/doRegister')}" method="post">

                            <h2 class="text-center">企业信息</h2>
                            <div class="form-group row">
                                <input type="text" name="name" placeholder="企业名称" class="form-control">
                            </div>
                            <div class="form-group row">
                                <input type="text" name="organization_code" placeholder="社会统一代码" class="form-control">
                            </div>
                            <div class="form-group row">
                                <input type="text" name="hs_code" placeholder="备注" class="form-control">
                            </div>
                            <div class="form-group row">
                                <fieldset>
                                    <legend>&nbsp;企业类型&nbsp;</legend>
                                    <foreach name="company_types" item="vo">
                                        <label class="checkbox-inline">
                                            <input class="input-types" value="{$vo.id}" type="checkbox" name="types[]">{$vo.name}
                                        </label>
                                    </foreach>
                                </fieldset>
                            </div>
                            <div class="form-group row image-upload">
                                <div class="col-xs-5">营业执照扫描件：</div>
                                <label class="checkbox-inline col-xs-7">
                                    <img class="image-preview" src="/static/images/default.jpg">
                                    <input type="hidden" class="business_license" name="business_license" value="">
                                    <input type="file" onchange="image_upload(this)" style="display: none;" />
                                </label>
                            </div>
                            <div class="form-group row image-upload">
                                <div class="col-xs-5" style="padding-right: 0">注册人身份证扫描件：</div>
                                <label class="checkbox-inline col-xs-7">
                                    <img class="image-preview" src="/static/images/default.jpg">
                                    <input type="hidden" class="identity_card" name="identity_card" value="">
                                    <input type="file" onchange="image_upload(this)" style="display: none;" />
                                </label>
                            </div>
                            <div class="form-group row image-upload" style="display: none;">
                                <div class="col-xs-5">手持身份证照片：</div>
                                <label class="checkbox-inline col-xs-7">
                                    <img class="image-preview" src="/static/images/default.jpg">
                                    <input type="hidden" class="handle_identity_card" name="handle_identity_card" value="">
                                    <input type="file" onchange="image_upload(this)" style="display: none;" />
                                    <a target="_blank" href="/static/images/handle_id_card_demo.jpg">查看示例</a>
                                </label>
                            </div>
                            <div class="form-group row">
                                <input type="text" name="contact_name" placeholder="企业业务联系人" class="form-control">
                            </div>
                            <div class="form-group row">
                                <input type="text" name="contact_mobile" placeholder="联系电话" class="form-control">
                            </div>

                            <h2 class="text-center">注册企业管理员账号</h2>

                            <div class="form-group row">
                                <input type="text" name="username" placeholder="手机号" class="form-control"
                                       id="js-mobile-input">
                            </div>

                            <div class="form-group row">
                                <div style="position: relative;">
                                    <input type="text" name="captcha" placeholder="验证码" class="form-control"
                                           style="width: 170px;float: left;margin-right: 30px">
                                    <captcha height="38" width="160" font-size="20"/>
                                </div>
                            </div>

                            <div class="form-group row">
                                <input type="password" name="password" placeholder="密码" class="form-control">
                            </div>

                            <div class="form-group row">
                                <button class="btn btn-primary btn-block js-ajax-submit" type="submit" data-wait="1500"
                                        style="margin-left: 0px;">确定注册
                                </button>
                            </div>

                            <div class="form-group row" style="text-align: center;">
                                <p>
                                    已有账号? <a href="{:dc_url('/admin')}">点击此处登录</a>
                                </p>
                            </div>
                        </form>
                    </div>
                </notempty>
            </div>

        </div>
    </div>

</div>
<!-- /container -->

<include file="public@scripts"/>
<style>
    .image-preview {
        height: 40px;
        border: 1px solid #d7d7d7;
    }
    .image-upload {
        line-height: 40px;
    }
</style>
</body>
</html>